package com.exp.bookhouse.pojo.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.List;

@ApiModel("购物车VO")
public class ShopCartInfo implements Serializable {

    @ApiModelProperty(value = "购物车列表")
    private List<BookVo> shopList;  //购物车列表

    @ApiModelProperty(value = "购物车商品数目")
    private Integer shopNum;    //购物车数目

    @ApiModelProperty(value = "购物车书籍库存")
    private List<StockVo> stockVos;     //购物车书籍库存

    private Long uid;   //哪个用户的购物车

    public ShopCartInfo() {
    }

    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public List<BookVo> getShopList() {
        return shopList;
    }

    public void setShopList(List<BookVo> shopList) {
        this.shopList = shopList;
    }

    public Integer getShopNum() {
        return shopNum;
    }

    public void setShopNum(Integer shopNum) {
        this.shopNum = shopNum;
    }

    public List<StockVo> getStockVos() {
        return stockVos;
    }

    public void setStockVos(List<StockVo> stockVos) {
        this.stockVos = stockVos;
    }

    @Override
    public String toString() {
        return "ShopCartInfo{" +
                "shopList=" + shopList +
                ", shopNum=" + shopNum +
                ", stockVos=" + stockVos +
                ", uid=" + uid +
                '}';
    }
}
